package com.usdt.system.domain.resp;

import java.time.LocalDateTime;

import org.apache.commons.lang3.StringUtils;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "首签人员VO")
public class SignUserRespVo {

	//客户
	@Schema(title = "客户id")
	private String customerId;
	
	@Schema(title = "客户姓名")
	private String customerName;
	
	@Schema(title = "年龄")
	private Integer age;
	
	@Schema(title = "性别")
	private String sex;
	
	@Schema(title = "手机号")
	private String phoneNumber;
	
	@Schema(title = "房间号")
	private String roomName; 
	
	@Schema(title = "客户类型")
	private String customerType;
	
	
	//合同
	@Schema(title = "签约日期")
	private String signDate;
	
	@Schema(title = "合同状态")
	private String contractStatus;
	
	@Schema(title = "生效日期")
	private String startDate;
	
	@Schema(title = "失效日期")
	private String endDate;
	
	@Schema(title = "生效日期(临时)")
	private String startDateTemp;
	
	
	//业务员
	@Schema(title = "用户id")
	private String userId;
	
	@Schema(title = "用户姓名")
	private String userName;
	
	
	//项目
	@Schema(title = "部门id")
	private String deptId;
	
	@Schema(title = "部门名称")
	private String deptName;
	
	//渠道
	@Schema(title = "渠道id")
	private String sourceId;
	
	@Schema(title = "渠道名")
	private String sourceName;

	public String getStartDateTemp() {
		if(StringUtils.isBlank(startDate)) {
			return null;
		}
		return startDate.substring(0,7);
	}
}
